package com.ruoyi.sl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sl.mapper.SlCheckUserMapper;
import com.ruoyi.sl.domain.SlCheckUser;
import com.ruoyi.sl.service.ISlCheckUserService;

/**
 * 复核人Service业务层处理
 * 
 * @author admin
 * @date 2024-06-29
 */
@Service
public class SlCheckUserServiceImpl implements ISlCheckUserService 
{
    @Autowired
    private SlCheckUserMapper slCheckUserMapper;

    /**
     * 查询复核人
     * 
     * @param checkId 复核人主键
     * @return 复核人
     */
    @Override
    public SlCheckUser selectSlCheckUserByCheckId(Long checkId)
    {
        return slCheckUserMapper.selectSlCheckUserByCheckId(checkId);
    }

    /**
     * 查询复核人列表
     * 
     * @param slCheckUser 复核人
     * @return 复核人
     */
    @Override
    public List<SlCheckUser> selectSlCheckUserList(SlCheckUser slCheckUser)
    {
        return slCheckUserMapper.selectSlCheckUserList(slCheckUser);
    }

    /**
     * 新增复核人
     * 
     * @param slCheckUser 复核人
     * @return 结果
     */
    @Override
    public int insertSlCheckUser(SlCheckUser slCheckUser)
    {
        return slCheckUserMapper.insertSlCheckUser(slCheckUser);
    }

    /**
     * 修改复核人
     * 
     * @param slCheckUser 复核人
     * @return 结果
     */
    @Override
    public int updateSlCheckUser(SlCheckUser slCheckUser)
    {
        return slCheckUserMapper.updateSlCheckUser(slCheckUser);
    }

    /**
     * 批量删除复核人
     * 
     * @param checkIds 需要删除的复核人主键
     * @return 结果
     */
    @Override
    public int deleteSlCheckUserByCheckIds(Long[] checkIds)
    {
        return slCheckUserMapper.deleteSlCheckUserByCheckIds(checkIds);
    }

    /**
     * 删除复核人信息
     * 
     * @param checkId 复核人主键
     * @return 结果
     */
    @Override
    public int deleteSlCheckUserByCheckId(Long checkId)
    {
        return slCheckUserMapper.deleteSlCheckUserByCheckId(checkId);
    }
}
